package com.fusion.core.settings;


/**
 * @author SwethaShivakumar 
 * Project: fusion
 * Date: Mar 16, 2009
 * URL: http://fusionwiki.co.cc
 * Mail Me At: shiva@fusionproject.co.cc
 */
public class Friend {
    private String nickname, host;
    private Integer guid, port;
    private Long lastseenonlineat;
    private Integer middlemanguid; //0 if a first degree friend, guid of middleman if introduced by someone to me
    private String renamednickname; //used to display a different nickname then the "anonymous" one in ones UI

    public Friend() {
    }

    public Friend(String nickname, String lasthost, Integer guid, Integer lastport) {
        this.nickname = nickname;
        this.host = lasthost;
        this.guid = guid;
        this.port = lastport;
    }

    public Friend(String nickname, String lasthost, Integer guid, Integer lastport, Integer introducedBy) {
        this(nickname, lasthost,  guid, lastport);
        this.middlemanguid = introducedBy;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public Integer getPort() {
        return port;
    }

    public void setPort(Integer port) {
        this.port = port;
    }

    public Integer getGuid() {
        return guid;
    }

    public void setGuid(Integer guid) {
        this.guid = guid;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String toString() {
        return "Friend ["+nickname+"]";
    }

    public Long getLastseenonlineat() {
        return lastseenonlineat;
    }

    public void setLastseenonlineat(Long lastseenonlineat) {
        this.lastseenonlineat = lastseenonlineat;
    }

    public Integer getMiddlemanguid() {
        return middlemanguid;
    }

    public void setMiddlemanguid(Integer middlemanguid) {
        this.middlemanguid = middlemanguid;
    }

    public String getRenamednickname() {
        return renamednickname;
    }

    public void setRenamednickname(String renamednickname) {
        this.renamednickname = renamednickname;
    }
}
